.dict-manager {
    padding: 24px;
    background: var(--background-color);
    color: var(--text-color);
    min-height: calc(100vh - 68px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dict-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dict-manager-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dict-manager-title::before {
    content: "📚";
    font-size: 28px;
}

.dict-search-bar {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dict-search-form {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.dict-search-form .ant-form-item {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.dict-search-buttons {
    display: flex;
    gap: 8px;
}

.dict-table-container {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dict-table-container .ant-table {
    background: transparent;
}

.dict-table-container .ant-table-thead > tr > th {
    background: var(--primary-color);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.dict-table-container .ant-table-tbody > tr > td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.dict-table-container .ant-table-tbody > tr:hover > td {
    background: var(--hover-color);
}

.dict-category-tag {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.dict-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dict-tags .ant-tag {
    margin: 0;
    border-radius: 12px;
    font-size: 11px;
}

.dict-content-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-color-secondary);
}

.dict-modal .ant-modal-header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
}

.dict-modal .ant-modal-content {
    background: var(--card-background);
}

.dict-modal .ant-modal-title {
    color: var(--text-color);
    font-weight: 600;
}

/* 黑夜模式适配 */
body.dark-theme .dict-manager-header,
body.dark-theme .dict-search-bar,
body.dark-theme .dict-table-container {
    background: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

body.dark-theme .dict-table-container .ant-table-thead > tr > th {
    background: var(--primary-color);
    color: var(--text-color);
}

body.dark-theme .dict-table-container .ant-table-tbody > tr > td {
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dict-manager {
        padding: 16px;
    }

    .dict-manager-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .dict-search-form {
        flex-direction: column;
    }

    .dict-search-form .ant-form-item {
        min-width: 100%;
    }

    .dict-search-buttons {
        width: 100%;
        justify-content: center;
    }
}